//
//  HomeNavView.swift
//  LeGou
//
//  Created by lxm on 2022/7/27.
//

import UIKit

class HomeNavView: ZMXIBView {

    //MARK: --------------------属性--------------------
    
    @IBOutlet weak var searchButton: UIButton!
    //MARK: --------------------UI控件--------------------
    
//    @IBOutlet weak var signBtn: UIButton!
    @IBOutlet weak var signW: NSLayoutConstraint!
    
    @IBOutlet weak var changeBtn: UIButton!
    
    @IBOutlet weak var signButton: UIButton!
    //MARK: --------------------生命周期--------------------
    override init(frame: CGRect) {
        super.init(frame: frame)
        setUI()
        bindAction()
        addConstraints()
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        setUI()
        bindAction()
        addConstraints()
    }

    //MARK: --------------------UI--------------------
    func setUI() {
        if AppHelper.appVerify() {
            signButton.isHidden = true
            signW.constant = 0
        }
    }
    
    func addConstraints() {
     
    }
    
    //MARK: --------------------methods--------------------
    func bindAction() {
        
    }
    
    @IBAction func onScan(_ sender: Any) {
        ZMToast.showToast(title: "敬请期待")
    }
    
    @IBAction func ons(_ sender: Any) {
        ZMToast.showToast(title: "敬请期待")
    }
    
    @IBAction func onSign(_ sender: Any) {
//        ZMToast.showToast(title: "敬请期待")
    }
    
    
    //MARK: --------------------delegate--------------------

}
